﻿<phone:PhoneApplicationPage
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
	xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" 
	xmlns:controlsPrimitives="clr-namespace:Microsoft.Phone.Controls.Primitives;assembly=Microsoft.Phone.Controls" 
    x:Class="PhoneInfo.Page.SeparatorCenter"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True"
    xmlns:local="clr-namespace:PhoneInfo" 
    xmlns:delay="clr-namespace:Delay;assembly=PhonePerformance" 
    xmlns:sys="clr-namespace:System;assembly=mscorlib"
    Loaded="PhoneApplicationPage_Loaded" Style="{StaticResource TransitionPageStyle}"
    >
    <phone:PhoneApplicationPage.Resources>
        <local:FixEmptyUrl x:Key="FixUrl"/>
        <local:BoolToVis x:Key="BoolToVis"/>
        <shell:ApplicationBar x:Key="AppBar" BackgroundColor="#0a76d2" ForegroundColor="#ffffffff">
            <shell:ApplicationBarIconButton  IconUri="Icon/info/i_search.png" Text="搜索" Click="Reply"/>
            <shell:ApplicationBarIconButton  IconUri="Icon/info/i_refresh.png" Text="重置" Click="RE"/>
        </shell:ApplicationBar>
        <shell:ApplicationBar x:Key="AppBar1" BackgroundColor="#ff212121" ForegroundColor="#ffffffff">
            <shell:ApplicationBarIconButton  IconUri="Icon/black/i_search.png" Text="搜索" Click="Reply"/>
            <shell:ApplicationBarIconButton  IconUri="Icon/black/i_refresh.png" Text="重置" Click="RE"/>
        </shell:ApplicationBar>
        <Style x:Key="ListPickerStyle1" TargetType="toolkit:ListPicker">
        	<Setter Property="Background" Value="White"/>
        	<Setter Property="BorderBrush" Value="{StaticResource PhoneTextBoxBrush}"/>
        	<Setter Property="BorderThickness" Value="{StaticResource PhoneBorderThickness}"/>
        	<Setter Property="FontSize" Value="{StaticResource PhoneFontSizeMediumLarge}"/>
        	<Setter Property="HorizontalContentAlignment" Value="Left"/>
        	<Setter Property="Margin" Value="{StaticResource PhoneTouchTargetOverhang}"/>
        	<Setter Property="PickerPageUri" Value="/Microsoft.Phone.Controls.Toolkit;component/ListPicker/ListPickerPage.xaml"/>
        	<Setter Property="Template">
        		<Setter.Value>
        			<ControlTemplate TargetType="toolkit:ListPicker">
        				<StackPanel>
        					<VisualStateManager.VisualStateGroups>
        						<VisualStateGroup x:Name="PickerStates">
        							<VisualState x:Name="Normal">
        								<Storyboard>
        									<ColorAnimation Duration="0" To="#599df1" Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" Storyboard.TargetName="Border" d:IsOptimized="True"/>
        								</Storyboard>
        							</VisualState>
        							<VisualState x:Name="Highlighted">
        								<Storyboard>
        									<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="Border">
        										<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneTextBoxEditBorderBrush}"/>
        									</ObjectAnimationUsingKeyFrames>
        									<ColorAnimation Duration="0" To="#FF599DF1" Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" Storyboard.TargetName="Border" d:IsOptimized="True"/>
        								</Storyboard>
        							</VisualState>
        							<VisualState x:Name="Disabled">
        								<Storyboard>
        									<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="Border">
        										<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneDisabledBrush}"/>
        									</ObjectAnimationUsingKeyFrames>
        									<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Foreground" Storyboard.TargetName="UserControl">
        										<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneDisabledBrush}"/>
        									</ObjectAnimationUsingKeyFrames>
        								</Storyboard>
        							</VisualState>
        						</VisualStateGroup>
        					</VisualStateManager.VisualStateGroups>
        					<ContentControl ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" FontSize="18"  HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="0 0 0 8">
        						<ContentControl.Foreground>
        							<SolidColorBrush Color="#5c83a8"/>
        						</ContentControl.Foreground>
        					</ContentControl>
        					<Grid>
        						<Border x:Name="Border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="#599df1">
        							<UserControl x:Name="UserControl" Foreground="Black">
        								<StackPanel>
        									<TextBlock x:Name="MultipleSelectionModeSummary" Margin="8 8 0 8"/>
        									<Canvas x:Name="ItemsPresenterHost" MinHeight="46">
        										<ItemsPresenter x:Name="ItemsPresenter">
        											<ItemsPresenter.RenderTransform>
        												<TranslateTransform x:Name="ItemsPresenterTranslateTransform"/>
        											</ItemsPresenter.RenderTransform>
        										</ItemsPresenter>
        									</Canvas>
        								</StackPanel>
        							</UserControl>
        						</Border>
        					</Grid>
        				</StackPanel>
        			</ControlTemplate>
        		</Setter.Value>
        	</Setter>
        </Style>
	</phone:PhoneApplicationPage.Resources>
	<phone:PhoneApplicationPage.FontFamily>
		<StaticResource ResourceKey="PhoneFontFamilyNormal"/>
	</phone:PhoneApplicationPage.FontFamily>
	<phone:PhoneApplicationPage.FontSize>
		<StaticResource ResourceKey="PhoneFontSizeNormal"/>
	</phone:PhoneApplicationPage.FontSize>
	<phone:PhoneApplicationPage.Foreground>
		<StaticResource ResourceKey="PhoneForegroundBrush"/>
	</phone:PhoneApplicationPage.Foreground>
    <Grid x:Name="LayoutRoot" Background="{Binding Source={StaticResource Theme}, Path=cuTheme.TextBrush}">

        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel 包含应用程序的名称和页标题-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock Text="选机"  FontSize="50"  Foreground="{Binding Source={StaticResource Theme}, Path=cuTheme.TitleBrush}"  />
        </StackPanel>
        
        <!--ContentPanel - 在此处放置其他内容-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="0">
            <ScrollViewer Margin="0,0,0,0">
                <StackPanel >
                    <toolkit:ListPicker ItemsSource="{Binding}"  Margin="20,5,5,5" 
                           x:Name="Make"  Header="品牌"  FullModeHeader="品牌" CacheMode="BitmapCache" Style="{StaticResource ListPickerStyle1}" BorderBrush="Transparent">
                        <toolkit:ListPicker.ItemTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock  Text="{Binding}"  Foreground="Black"
                                                    />
                                </StackPanel>
                            </DataTemplate>
                        </toolkit:ListPicker.ItemTemplate>
                        <toolkit:ListPicker.FullModeItemTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal" Margin="16 21 0 20">
                                    <TextBlock Text="{Binding}" Margin="0 0 0 0" FontSize="43" 
                                                   FontFamily="{StaticResource PhoneFontFamilyLight}"/>
                                </StackPanel>
                            </DataTemplate>
                        </toolkit:ListPicker.FullModeItemTemplate>
                    </toolkit:ListPicker>
                    <toolkit:ListPicker  ItemsSource="{Binding}" x:Name="Price"  Margin="20,5,5,5"
                                             Header="价位"  FullModeHeader="价位" CacheMode="BitmapCache" Style="{StaticResource ListPickerStyle1}" BorderBrush="Transparent">
                        <toolkit:ListPicker.ItemTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock  Text="{Binding}"  Margin="0 0 0 0"
                                                    Foreground="Black" />
                                </StackPanel>
                            </DataTemplate>
                        </toolkit:ListPicker.ItemTemplate>
                        <toolkit:ListPicker.FullModeItemTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal" Margin="16 21 0 20">
                                    <TextBlock Text="{Binding}" Margin="0 0 0 0" FontSize="43" FontFamily="{StaticResource PhoneFontFamilyLight}"/>
                                </StackPanel>
                            </DataTemplate>
                        </toolkit:ListPicker.FullModeItemTemplate>
                    </toolkit:ListPicker>
                    <toolkit:ListPicker ItemsSource="{Binding}" x:Name="OpraterSystem"   Margin="20,5,5,5"
                                            Header="操作系统"  FullModeHeader="操作系统" CacheMode="BitmapCache"
                                            Style="{StaticResource ListPickerStyle1}" BorderBrush="Transparent">
                        <toolkit:ListPicker.ItemTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock  Text="{Binding}" Margin="0 0 0 0"
                                                    Foreground="Black" />
                                </StackPanel>
                            </DataTemplate>
                        </toolkit:ListPicker.ItemTemplate>
                        <toolkit:ListPicker.FullModeItemTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal" Margin="16 21 0 20">
                                    <TextBlock Text="{Binding}" Margin="0 0 0 0" FontSize="43" FontFamily="{StaticResource PhoneFontFamilyLight}"/>
                                </StackPanel>
                            </DataTemplate>
                        </toolkit:ListPicker.FullModeItemTemplate>
                    </toolkit:ListPicker>
                    <toolkit:ListPicker ItemsSource="{Binding}" x:Name="Appearance"   Margin="20,5,5,5"
                                            Header="外观设计"  FullModeHeader="外观设计" CacheMode="BitmapCache" 
                                            Style="{StaticResource ListPickerStyle1}" BorderBrush="Transparent">
                        <toolkit:ListPicker.ItemTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock  Text="{Binding}" Margin="0 0 0 0"
                                                    Foreground="Black" />
                                </StackPanel>
                            </DataTemplate>
                        </toolkit:ListPicker.ItemTemplate>
                        <toolkit:ListPicker.FullModeItemTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal" Margin="16 21 0 20">
                                    <TextBlock Text="{Binding}" Margin="0 0 0 0" FontSize="43" FontFamily="{StaticResource PhoneFontFamilyLight}"/>
                                </StackPanel>
                            </DataTemplate>
                        </toolkit:ListPicker.FullModeItemTemplate>
                    </toolkit:ListPicker>
                    <toolkit:ListPicker x:Name="GPS" Header="GPS"   Margin="20,5,5,5" 
                                            Style="{StaticResource ListPickerStyle1}"
                                            Foreground="Black" BorderBrush="Transparent">
                        <sys:String>不限</sys:String>
                        <sys:String>支持</sys:String>
                        <sys:String>不支持</sys:String>
                    </toolkit:ListPicker>
                    <toolkit:ListPicker x:Name="WIFI" Foreground="Black"   Margin="20,5,5,5"
                                            Header="wifi" Style="{StaticResource ListPickerStyle1}" BorderBrush="Transparent">
                        <sys:String>不限</sys:String>
                        <sys:String>支持</sys:String>
                        <sys:String>不支持</sys:String>
                    </toolkit:ListPicker>
                    <toolkit:ListPicker  x:Name="Opraters" Margin="20,5,5,5"
                                             ItemsSource="{Binding}"  Header="运营商"  FullModeHeader="运营商" 
											 CacheMode="BitmapCache" Style="{StaticResource ListPickerStyle1}" BorderBrush="Transparent">
                        <toolkit:ListPicker.ItemTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock  Text="{Binding}" Margin="0 0 0 0"
                                                    Foreground="Black"/>
                                </StackPanel>
                            </DataTemplate>
                        </toolkit:ListPicker.ItemTemplate>
                        <toolkit:ListPicker.FullModeItemTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal" Margin="16 21 0 20">
                                    <TextBlock Text="{Binding}" Margin="0 0 0 0" FontSize="43" FontFamily="{StaticResource PhoneFontFamilyLight}"/>
                                </StackPanel>
                            </DataTemplate>
                        </toolkit:ListPicker.FullModeItemTemplate>
                    </toolkit:ListPicker>
                    <toolkit:ListPicker x:Name="MarketTime"  Foreground="Black"   Margin="20,5,5,5"
                                            Header="上市时间" Style="{StaticResource ListPickerStyle1}">
                        <sys:String>不限</sys:String>
                        <sys:String>2011年</sys:String>
                        <sys:String>2010年</sys:String>
                    </toolkit:ListPicker>
                    <toolkit:ListPicker  ItemsSource="{Binding}" BorderBrush="Transparent"   Margin="20,5,5,5"
						                     x:Name="Ram" Header="运行内存"  FullModeHeader="运行内存" 
                                             CacheMode="BitmapCache" Style="{StaticResource ListPickerStyle1}">
                        <toolkit:ListPicker.ItemTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock  Text="{Binding}"  Foreground="Black" Margin="0 0 0 0"/>
                                </StackPanel>
                            </DataTemplate>
                        </toolkit:ListPicker.ItemTemplate>
                        <toolkit:ListPicker.FullModeItemTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal" Margin="16 21 0 20">
                                    <TextBlock Text="{Binding}" Margin="0 0 0 0" FontSize="43" FontFamily="{StaticResource PhoneFontFamilyLight}"/>
                                </StackPanel>
                            </DataTemplate>
                        </toolkit:ListPicker.FullModeItemTemplate>
                    </toolkit:ListPicker>
                    <toolkit:ListPicker x:Name="Area"  Foreground="Black" BorderBrush="Transparent"   Margin="20,5,5,5"
                                            Header="产地" FullModeHeader="产地" Style="{StaticResource ListPickerStyle1}">
                        <sys:String>不限</sys:String>
                        <sys:String>欧美</sys:String>
                        <sys:String>日韩</sys:String>
                        <sys:String>中国</sys:String>
                        <sys:String>台湾</sys:String>
                    </toolkit:ListPicker>
                    <toolkit:ListPicker  ItemsSource="{Binding}"   Margin="20,5,5,5"
                                             Foreground="{Binding Source={StaticResource Theme}, Path=cuTheme.SecondTextBrush}"
                                             x:Name="CPU" Header="CPU"  FullModeHeader="CPU" CacheMode="BitmapCache" 
											 BorderBrush="Transparent" Style="{StaticResource ListPickerStyle1}">
                        <toolkit:ListPicker.ItemTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock  Text="{Binding}" Margin="0 0 0 0"  Foreground="Black"/>
                                </StackPanel>
                            </DataTemplate>
                        </toolkit:ListPicker.ItemTemplate>
                        <toolkit:ListPicker.FullModeItemTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal" Margin="16 21 0 20">
                                    <TextBlock Text="{Binding}" Margin="0 0 0 0" FontSize="43" FontFamily="{StaticResource PhoneFontFamilyLight}"/>
                                </StackPanel>
                            </DataTemplate>
                        </toolkit:ListPicker.FullModeItemTemplate>
                    </toolkit:ListPicker>
                    <toolkit:ListPicker  ItemsSource="{Binding}"   Margin="20,5,5,5"
                                             Foreground="Black" BorderBrush="Transparent"
                                             x:Name="DPI" Header="分辨率"  FullModeHeader="分辨率" CacheMode="BitmapCache" Style="{StaticResource ListPickerStyle1}">
                        <toolkit:ListPicker.ItemTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock  Text="{Binding}" Margin="0 0 0 0"  Foreground="Black"/>
                                </StackPanel>
                            </DataTemplate>
                        </toolkit:ListPicker.ItemTemplate>
                        <toolkit:ListPicker.FullModeItemTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal" Margin="16 21 0 20" 
                                                >
                                    <TextBlock Text="{Binding}" Margin="0 0 0 0" FontSize="43" FontFamily="{StaticResource PhoneFontFamilyLight}"/>
                                </StackPanel>
                            </DataTemplate>
                        </toolkit:ListPicker.FullModeItemTemplate>
                    </toolkit:ListPicker>
                    <toolkit:ListPicker  ItemsSource="{Binding}"   Margin="20,5,5,5"
                                             Foreground="{Binding Source={StaticResource Theme}, Path=cuTheme.SecondTextBrush}"
                                             x:Name="Screen" Header="屏幕大小"  FullModeHeader="屏幕大小" CacheMode="BitmapCache" Style="{StaticResource ListPickerStyle1}">
                        <toolkit:ListPicker.ItemTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock  Text="{Binding}"  Foreground="Black"
                                                    Margin="0 0 0 0"/>
                                </StackPanel>
                            </DataTemplate>
                        </toolkit:ListPicker.ItemTemplate>
                        <toolkit:ListPicker.FullModeItemTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal" Margin="16 21 0 20">
                                    <TextBlock Text="{Binding}" Margin="0 0 0 0" FontSize="43" FontFamily="{StaticResource PhoneFontFamilyLight}"/>
                                </StackPanel>
                            </DataTemplate>
                        </toolkit:ListPicker.FullModeItemTemplate>
                    </toolkit:ListPicker>
                    <toolkit:ListPicker  ItemsSource="{Binding}" x:Name="Color" Header="色彩" BorderBrush="Transparent"
						        Margin="20,5,5,5"     FullModeHeader="色彩" CacheMode="BitmapCache" Style="{StaticResource ListPickerStyle1}">
                        <toolkit:ListPicker.ItemTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock  Text="{Binding}" Margin="0 0 0 0"
                                                    Foreground="Black"/>
                                </StackPanel>
                            </DataTemplate>
                        </toolkit:ListPicker.ItemTemplate>
                        <toolkit:ListPicker.FullModeItemTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal" Margin="16 21 0 20">
                                    <TextBlock Text="{Binding}" Margin="0 0 0 0" FontSize="43" FontFamily="{StaticResource PhoneFontFamilyLight}"/>
                                </StackPanel>
                            </DataTemplate>
                        </toolkit:ListPicker.FullModeItemTemplate>
                    </toolkit:ListPicker>
                </StackPanel>
            </ScrollViewer>
        </Grid>
	</Grid>
  
</phone:PhoneApplicationPage>
